package mySocketCom;

import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;

public class CloseResourceIO {
	public static void closeInputStream(Closeable... io) {
		for (Closeable temp : io) {
			if (temp != null) {
				try {
					temp.close();
				} catch (IOException e) {

					e.printStackTrace();
				}
			}
		}
	}

}
